home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0360.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.5 KB  |  36 lines

  1. > > Use the same technique I said except use Text Length(T$) to get the
  2. > > width in pixels of the text.
  3. > > Remember that if the font has height H and you do Text X,Y,A$
  4. > > Then the top left of the text is at X,Y-H and the bottom right is at
  5. > > X+Text Length(A$),Y.
  6. > > Just set a zone to these coords.
  7. > NO !! The UL-corner of text is NOT in Y-H, it's in Y-Text Base...
  8. > eg. for topaz-8 (standard) the height is 8, but the text base is 7..
  9.  
  10. OK. Sorry. I forgot about the curly bits on letters like y right?
  11. Then instead you should have:
  12. X, Y-H+1   to   X+Text Length(A$),Y+1
  13.  
  14. Sound right?
  15.  
  16. -Murray
  17.  
  18. --
  19.  
  20.  Alastair  \\|//   malcolm.murray@virgin.net
  21.   Murray   (o o)      http://freespace.virgin.net/malcolm.murray
  22. |~~~~~~oOOo~(_)~oOOo~~~~|~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~|
  23. | ---===ON AMINET===--- |dev/misc/Backbone | --==IN PRODUCTION==--  |
  24. |  game/shoot/Hanger18  |game/shoot/Traitor|    The Turtleminator   |
  25. |game/jump/BananaIslands|  game/role/CHAOS |       Hangar 18 II     |
  26. |  game/shoot/Extinct   | game/jump/Blobby | Backbone - Game Creator|
  27. |   dev/amos/KeyState   | dev/amos/PicPack |Star Trek - BORG Assault|
  28. |  pix/nicon/TrekNIcons | game/shoot/XII   |                        |
  29. | game/shoot/KillEmAll  |                  |                        |
  30. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. Man shall never reach the moon, for such a quantity of gunpowder would
  32. be needed as to gravely injure the crew - Children's Encyclopedia 1926
  33.  
  34.  
  35.